package com.liruo.enumconverter.nogeneric.serialize;

import com.liruo.enumconverter.model.SourceEnum;
import org.springframework.core.convert.converter.Converter;

/**
 * @Author:liruo
 * @Date:2023-02-19-22:55:00
 * @Desc
 */
public abstract class AbstractEnumToSourceConverter<S> implements Converter<SourceEnum<S>, S> {
    protected S toSource(SourceEnum<S> source) {
        return source.source();
    }

}
